package com.it.common;

public enum ErrorCategory {

    RET_SUCCESS(0, "服务正常"),

    RET_COMMON(1, "公共错误"),

    RET_AUTH(2, "鉴权错误"),

    RET_API(3, "API级错误"),
    
    RET_INTERNAL(4, "内部错误"),;

    /**
     * code
     */
    private final int code;

    /**
     * message
     */
    private String message;

    /**
     * ErrorCategory
     *
     * @param code
     * @param message
     */
    ErrorCategory(int code, String message) {
        this.code = code;
        this.message = message;
    }

    /**
     * getCode
     *
     * @return
     */
    public int getCode() {
        return code;
    }

    /**
     * getMessage
     *
     * @return
     */
    public String getMessage() {
        return message;
    }
}
